package com.group3.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.group3.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserDao extends BaseMapper<User> {

    // 新增根据用户名查询用户的方法
    @Select("SELECT * FROM ls_user WHERE username = #{username}")
    User selectByUsername(String username);
}
